package com.geeguo.ebuilder.operation.controller.tenant.clientwebmodule;

import com.geeguo.ebuilder.core.common.action.ActionResult;
import com.geeguo.ebuilder.operation.business.tenant.clientwebmodule.model.*;
import com.geeguo.ebuilder.operation.business.tenant.clientwebmodule.service.ClientWebModuleService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Tag(name = "客户Web端菜单信息")
@RestController
public class ClientWebModuleController {

    @Autowired
    private ClientWebModuleService clientWebModuleService;

    @Operation(summary = "查询菜单列表")
    @GetMapping("/tenant/clientWebModule/listAll")
    public ActionResult<List<ClientWebModuleVO>> listAll() {
        return ActionResult.success(clientWebModuleService.listAll());
    }
}